<template>
  <div class="main-goods-list">
    <div class="goods-list">
      <goods-list-item v-for="(item,index) in goods" :key="index" :goodsItem="item"/>
    </div>
  </div>
</template>

<script>
  import GoodsListItem from "./GoodsListItem";

  export default {
    name: "GoodsList",
    components: {GoodsListItem},
    props: {
      goods: {
        type: Array,
        default() {
          return []
        }
      }
    },

  }
</script>

<style scoped>
  .main-goods-list {
    padding-top: 5px;
  }

  .goods-list {
    margin: 0 auto;
    width: 100%;
    column-count: 2;
    column-width: 60px;
    column-gap: 10px;
  }

</style>
